<?php

function PollRewrite($print_out)
{
	$print_out = preg_replace('/index.php([?])module=poll&amp;action=vote&amp;pid=(\d+)/', ABS_PATH . 'vote-\\2', $print_out);
	$print_out = preg_replace('/index.php([?])module=poll&amp;action=result&amp;pid=(\d+)/', ABS_PATH . 'vote_result-\\2', $print_out);
	$print_out = preg_replace('/index.php([?])module=poll&amp;action=form&amp;pop=1&amp;pid=(\d+)/', ABS_PATH . 'pollcomment-\\2', $print_out);
	$print_out = preg_replace('/index.php([?])module=poll&amp;action=archive/', ABS_PATH . 'poll-archive', $print_out);
	$print_out = str_replace(".html&amp;print=1", "-print.html", $print_out);

	return $print_out;
}

?>

